class Run < ActiveRecord::Base
  
  belongs_to :web_spec
  
  def start!
    key = MiddleMan.new_worker(:class => :web_spec_runner_worker,
                               :args => self.id )
    self.status = 'running'
    self.runner_key = key
  end

  def running?
    self.status == 'running'
  end
  
end
